package com.mao.service.organization;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.mao.action.jsonvo.organization.JsonVoOrganization;
import com.mao.model.organization.Organization;
import com.mao.service.impl.organization.OrganizationCondition;

@Transactional(rollbackFor=Exception.class,propagation=Propagation.REQUIRED)
public interface IOrganizationService<T>{
	public List<Organization> getAllOrganization();

	public Organization saveOrganization(Organization o);

	public Organization updateOrganization(Organization o);

	public Organization getOrganizationById(long id);
	
	public List<JsonVoOrganization> getOrgsByOrgClass(OrganizationCondition organizationCondition,long orgClassId,Integer page,Integer rows);
	
	public int getOrgsByOrgClassgCount(OrganizationCondition organizationCondition,long orgClassId);
	
	public String valDelOrg(long id);
}
